﻿<phone:PhoneApplicationPage 
    x:Class="HomeBuyerTools.Views.ClosingCostAnalysis.ClosingCostAnalysis"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" >

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>

        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="HomeBuyerTools" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="Closing Cost Analysis" Margin="9,-7,0,0" FontSize="45"/>
        </StackPanel>
        <ScrollViewer Grid.Row="1">
            <!--ContentPanel - place additional content here-->
            <Grid x:Name="ContentPanel"  Margin="12,0,12,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="Assumptions" FontSize="30"/>
                <StackPanel Grid.Row="1" Orientation="Horizontal">
                    <TextBlock Name="tbSellingPriceOfProperty" Text="Selling price of property" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtSellingPriceOfProperty" InputScope="TelephoneNumber"  Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="2" Orientation="Horizontal">
                    <TextBlock Name="tbDownpayment" Text="Down payment" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtDownpayment" InputScope="TelephoneNumber"  Margin="5,0,0,0" Width="180"/>
                </StackPanel>

               

                <StackPanel Grid.Row="3" Orientation="Horizontal">
                    <TextBlock Name="tbMortgageRate" Text="Mortgage rate" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtMortgageRate" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="4" Orientation="Horizontal">
                    <TextBlock Name="tbPoints" Text="Points" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtPoints" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="5" Orientation="Horizontal">
                    <TextBlock Name="tbDaysInterestPayable" Text="Days interest payable" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtDaysInterestPayable" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="6" Orientation="Horizontal">
                    <TextBlock Name="tbProfessionalFees" Text="Professional Fees" FontSize="30" Margin="0,0,16,0"/>
                </StackPanel>

                <StackPanel Grid.Row="7" Orientation="Horizontal">
                    <TextBlock Name="tbBroker" Text="Broker" FontSize="25" Width="290"/>
                    <TextBox x:Name="txtBroker" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="8" Orientation="Horizontal">
                    <TextBlock Name="tbAppraiser" Text="Appraiser" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtAppraiser" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180" />
                </StackPanel>

                <StackPanel Grid.Row="9" Orientation="Horizontal">
                    <TextBlock Name="tAttorney" Text="Attorney" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtAttorney" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="10" Orientation="Horizontal">
                    <TextBlock Name="tbSurveyor" Text="Surveyor" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtSurveyor" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="11" Orientation="Horizontal">
                    <TextBlock Name="tbTitleSearcher" Text="Title searcher" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTitleSearcher" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                

                <StackPanel Grid.Row="12" Orientation="Horizontal">
                    <TextBlock Name="tbInsurance" Text="Insurance" FontSize="30" Margin="0,0,16,0"/>
                </StackPanel>

                <StackPanel Grid.Row="13" Orientation="Horizontal">
                    <TextBlock Name="tbHazardInsurance" Text="Hazard insurance" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtHazardInsurance" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="15" Orientation="Horizontal">
                    <TextBlock Name="tbFloodInsurance" Text="Flood insurance" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtFloodInsurance" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="16" Orientation="Horizontal">
                    <TextBlock Name="tbTitleInsurance" Text="Title insurance" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTitleInsurance" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="17" Orientation="Horizontal">
                    <TextBlock Name="tbOtherInsurance" Text="Other insurance" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtOtherInsurance" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="18" Orientation="Horizontal">
                    <TextBlock Name="tbTotal1" Text="Total" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTotal1" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="18" Orientation="Horizontal">
                    <TextBlock Text="Escrow Accounts" FontSize="30" Margin="0,0,16,0"/>
                </StackPanel>

                <StackPanel Grid.Row="19" Orientation="Horizontal">
                    <TextBlock Name="tbInsuranceEscrow" Text="Insurance escrow" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtInsuranceEscrow" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="20" Orientation="Horizontal">
                    <TextBlock Name="tbTaxEscrow" Text="Tax escrow" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTaxEscrow" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="21" Orientation="Horizontal">
                    <TextBlock Name="tbOtherEscrow" Text="Other escrow" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtOtherEscrow" InputScope="TelephoneNumber" Text="" Margin="5,0,0,0"  Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="22" Orientation="Horizontal">
                    <TextBlock Name="tbTotal2" Text="Total" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTotal2" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="23" Orientation="Horizontal">
                    <TextBlock Text="Mailing and Telephone Charges" FontSize="30" Margin="0,0,16,0"/>
                </StackPanel>

                <StackPanel Grid.Row="24" Orientation="Horizontal">
                    <TextBlock Name="tbFreightAndExpressMail" Text="Freight and Express Mail" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtFreightAndExpressMail" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="25" Orientation="Horizontal">
                    <TextBlock Name="tbFederalExpress" Text="Federal Express" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtFederalExpress" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="25" Orientation="Horizontal">
                    <TextBlock Name="tbTelephone" Text="Telephone" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTelephone" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="26" Orientation="Horizontal">
                    <TextBlock Name="tbTotal4" Text="Total" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTotal4" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="27" Orientation="Horizontal">
                    <TextBlock Text="Mortgage Costs" FontSize="30" Margin="0,0,16,0"/>
                </StackPanel>

                <StackPanel Grid.Row="28" Orientation="Horizontal">
                    <TextBlock Name="tbDiscount" Text="Discount" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtDiscount" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="29" Orientation="Horizontal">
                    <TextBlock Name="tbPoints1" Text="Points" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtPoints1" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="30" Orientation="Horizontal">
                    <TextBlock Name="tbDocumentfees" Text="Document fees" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtDocumentfees" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="31" Orientation="Horizontal">
                    <TextBlock Name="tbInterest" Text="Interest" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtInterest" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="32" Orientation="Horizontal">
                    <TextBlock Name="tbTotal5" Text="Total" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTotal5" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="33" Orientation="Horizontal">
                    <TextBlock Name="tbMiscellaneousFees" Text="Miscellaneous Fees" FontSize="30" Margin="0,0,16,0"/>
                </StackPanel>

                <StackPanel Grid.Row="34" Orientation="Horizontal">
                    <TextBlock Name="tbTaxservicefee" Text="Tax service fee" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTaxservicefee" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="35" Orientation="Horizontal">
                    <TextBlock Name="tbRecordingFees" Text="Recording fees" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtRecordingFees" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="36" Orientation="Horizontal">
                    <TextBlock Name="tbPropertyOwnersAssociation" Text="Property owners association" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtPropertyOwnersAssociation" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="37" Orientation="Horizontal">
                    <TextBlock Name="tbTotal6" Text="Total" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTotal6" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="38" Orientation="Horizontal">
                    <TextBlock Text="Credits" FontSize="30" />
                </StackPanel>

                <StackPanel Grid.Row="39" Orientation="Horizontal">
                    <TextBlock Name="tbPropertyOwnersAssociation1" Text="Property owners association" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtPropertyOwnersAssociation1" InputScope="TelephoneNumber" Text="" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="40" Orientation="Horizontal">
                    <TextBlock Name="tbTaxes" Text="Taxes" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTaxes" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="41" Orientation="Horizontal">
                    <TextBlock Name="tbFloodInsurance1" Text="Flood insurance" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtFloodInsurance1" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="42" Orientation="Horizontal">
                    <TextBlock Name="tbTotal7" Text="Total" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtTotal7" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="43" Orientation="Horizontal">
                    <TextBlock Text="Summary" FontSize="30" Margin="0,0,16,0"/>
                </StackPanel>

                <StackPanel Grid.Row="44" Orientation="Horizontal">
                    <TextBlock Name="tbNetPayableAtClosing" Text="Net payable at closing (est.)" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtNetPayableAtClosing" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/>
                </StackPanel>

                <StackPanel Grid.Row="45" Orientation="Horizontal">
                    <TextBlock Name="tbClosingCostAsOfMortgage" Text="Closing cost as % of mortgage" FontSize="25" Width="300"/>
                    <TextBox x:Name="txtClosingCostAsOfMortgage" InputScope="TelephoneNumber" Margin="5,0,0,0" Width="180"/> 
                </StackPanel>


            </Grid>
        </ScrollViewer>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/Calculator.png" Text="Calculate" Click="ApplicationBarCalculate_Click" />
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>-->
            <!--<shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
